home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Internet Chooser / reggie / light / platform.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-21  |  1.6 KB  |  53 lines  |  [TEXT/MMCC]

  1. /* File "platform.cp", Light Sockets - Copyright (C) Matt Slot, 1996          */
  2. /* Platform specific utilities for registering and selecting network stacks.  */
  3.  
  4. #ifndef __PLATFORM_HEADER__
  5. #define __PLATFORM_HEADER__
  6.  
  7. #ifndef __STD_TYPES_HEADER__
  8. #include "stdtypes.h"
  9. #endif /* __STD_TYPES_HEADER__ */
  10.  
  11. #ifndef __SOCKET_HEADER__
  12. #include "socket.h"
  13. #endif /* __SOCKET_HEADER__ */
  14.  
  15. #ifndef __NET_STACK_HEADER__
  16. #include "netstack.h"
  17. #endif /* __NET_STACK_HEADER__ */
  18.  
  19. /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
  20. /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
  21. /* Preprocessor Defines */
  22.  
  23.  
  24. /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
  25. /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
  26. /* Enum/Structure/Class Definitions */
  27.  
  28.  
  29. /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
  30. /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
  31. /* Function Prototypes */
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. SocketResult SelectNetworkStack(SocketRef socket, NetworkStackRef &stack);
  38.  
  39. SocketResult ResolveNetworkAddress(SocketType suggType, Char8 *textAddress,
  40.         SocketAddressPtr socketAddress);
  41. SocketResult LookupNetworkAddress(SocketAddressPtr socketAddress, 
  42.         Char8 *textAddress);
  43.  
  44. #ifdef __cplusplus
  45.     }
  46. #endif
  47.  
  48. /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
  49. /* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
  50.  
  51. #endif /* __PLATFORM_HEADER__ */
  52.  
  53.